/* craco.config.js */
const path = require('path')
module.exports = {
	webpack: {
		alias: {
			'@': path.resolve(__dirname, 'src'),
		},
	},
	devServer: {
		port: 9090,
		client: {
			logging: 'info',
			overlay: false,
			progress: true,
		},
		headers: {
			'X-Custom-Foo': 'bar',
		},
	},
	style: {
		sass: {
			loaderOptions: (sassOptions) => {
				sassOptions.additionalData = `@import "@/assets/styles/_variables.scss";`
				return sassOptions
			},
		},
	},
	eslint: {
		enable: true,
	},
}
